import './css/index.css'

import Vue from 'vue'

//导入MUI样式
import './lib/mui/css/mui.min.css'
import './lib/mui/css/icons-extra.css'

//导入的主页面Vue
import app from './App.vue'

//导入路由插件
import VueRouter from 'vue-router'

Vue.use(VueRouter);  //把插件手动注册到Vue主件上

import VueResource from 'vue-resource'
Vue.use(VueResource);

//按需求导入的组件
import {Header, Swipe, SwipeItem} from 'mint-ui';

Vue.component(Header.name, Header);
Vue.component(Swipe.name, Swipe);
Vue.component(SwipeItem.name, SwipeItem);

//导入自己的路由模块
import router from './router.js'

var v = new Vue({
    el: '#dv',
    render: c => c(app),
    //Vue关联router路由模块
    router
});